package com.cn.web.user.vo.company;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cn.common.IDGenerate;
import com.cn.dic.annoations.DicAnnoations;
import com.cn.dic.serialize.DicSerialize;
import com.cn.empty.EmptyCheck;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * description: UserCompanyScoreDO <br>
 * date: 23.7.18 9:30 <br>
 * author: cn_yaojin <br>
 * version: 1.0 <br>
 */
@Setter
@Getter
@Accessors(chain = true)
@ApiModel(value = "企业评分实体")
@TableName(value = "sys_user_company_score")
public class UserCompanyScoreDO extends IDGenerate {

    @EmptyCheck(message = "企业名称不能为空")
    @ApiModelProperty(value = "企业名称")
    private String companyName;

    @EmptyCheck(message = "统一信用代码不能为空")
    @ApiModelProperty(value = "统一信用代码")
    private String companyNo;

    @ApiModelProperty(value = "企业logo")
    private String companyLogo;

    @ApiModelProperty(value = "评分")
    private BigDecimal score;

    @ApiModelProperty(value = "1-农资商城 2-B2B 3-农技 ")
    private Integer type;

    @DicAnnoations(dicType = "userItemType")
    @JsonSerialize(using = DicSerialize.class)
    @TableField(exist = false)
    private String typeTxt;

    private String img;

    private String url;

    @ApiModelProperty(value = "关联业务ID")
    private String linkId;

    @ApiModelProperty(value = "地区编码")
    private String areaCode;

    @ApiModelProperty(value = "扩展信息（json格式方便以后扩展）")
    private String content;

    @ApiModelProperty(value = "扩展信息1（json格式方便以后扩展）")
    private String extParam1;

    @ApiModelProperty(value = "扩展信息2（json格式方便以后扩展）")
    private String extParam2;

    @ApiModelProperty(value = "新增时间")
    private String addTime;


}
